package javaBase.hashMaptest;

import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @program: jvm
 * @description
 * @author: tkk fendoukaoziji
 * @create: 2019-04-07 17:20
 **/
public class TestHashMap {
    public static void main(String[] args) {
        HashMap hmap1 = new HashMap<String,String>();
        ConcurrentHashMap<String, String> hmap2 = new ConcurrentHashMap<>();
        hmap1.put("memei","beautiful");
        hmap1.put("wo","shuaiqi");

        hmap2.put("meimei","su");
        hmap2.put("nihao","haobuhao");

        Object h1 = hmap1.get("fuck");
        System.out.println(h1.toString());

    }
}
